<template>
  <div class="wrapper">
    <swiper :options="swiperOption" v-if='swiperList.length'>
      <!-- slides -->
      <swiper-slide v-for="item in swiperList" :key="item.id">
        <img class="swiper-img" :src="item.imgUrl" />
      </swiper-slide>
      <div class="swiper-pagination" slot="pagination"></div>
    </swiper>
  </div>
</template>
<script>
export default {
  name: "HomeSwiper",
  components: {},
  props: {
    swiperList:Array
  },
  data() {
    return {
      swiperOption: {
        pagination: ".swiper-pagination",
        loop: true,
        autoplay:true,
        speed:1500,
      },
    };
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {},
};
</script>
<style lang='stylus' scoped>
 .wrapper >>> .swiper-pagination-bullet-active
    background: #000
  .wrapper
    height :31.25vw
    background: #eee
    .swiper-img
      width: 100%
</style>